﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quotation.Future
{
    public class BasicInfo : BasicInfoBase
    {
        
        /// <summary>
        /// 
        /// </summary>
        public SymbolCode MappingContractId { set; get; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string ProductId { get; set; }

        /// <summary>
        /// 上市日期
        /// </summary>
        public Date BeginDate { get; set; }

        /// <summary>
        /// 到期日
        /// </summary>
        public Date EndDate { get; set; }

        /// <summary>
        /// 交割日
        /// </summary>
        public Date AccountDate { get; set; }

        /// <summary>
        /// 价格档位
        /// </summary>
        public double OrderPriceUnit { get; set; }

        /// <summary>
        /// 持仓量
        /// </summary>
        public Int64 OpenPosition { get; set; }
        
        /// <summary>
        /// 昨日持仓量
        /// </summary>
        public Int64 PreOpenPosition { get; set; }

        /// <summary>
        /// 昨日成交量
        /// </summary>
        public Int64 PreExchTotalKnockQty { get; set; }

        /// <summary>
        /// 昨日成交金额
        /// </summary>
        public double PreExchTotalKnockAmt { get; set; }


        /// <summary>
        /// 昨日结算价
        /// </summary>
        public double PreSettlementPrice { get; set; }

        /// <summary>
        /// 今日结算价
        /// </summary>
        public double SettlementPrice { get; set; }

        /// <summary>
        /// 限价委托上限
        /// </summary>
        public Int32 MaxLimitOrderQty { get; set; }

        /// <summary>
        /// 限价委托下限
        /// </summary>
        public Int32 MinLimitOrderQty { get; set; }

        /// <summary>
        /// 市价委托上限
        /// </summary>
        public Int32 MaxMarketOrderQty { get; set; }

        /// <summary>
        /// 市价委托下限
        /// </summary>
        public Int32 MinMarketOrderQty { get; set; }

        /// <summary>
        /// 合约序号
        /// </summary>
        public Int32 ContractSerialNo { get; set; }

        /// <summary>
        /// 每手数量
        /// </summary>
        public int ConvertQty { get; set; }

        /// <summary>
        /// 是否是大边保证金
        /// </summary>
        public bool BigMarginFlag { get; set; }


        /// <summary>
        /// 证券类型
        /// </summary>
        public StockType StkType { get; set; }

        /// <summary>
        ///  交易类型
        /// </summary>
        public TradeType TradeType { get; set; }

        /// <summary>
        /// 行情来源
        /// </summary>
        public FutureQuotLevel QuotLevel { get; set; }


        /// <summary>
        /// 静态资料版本，格式为：YYYYMMDDhhmmss，即：年月日时分秒
        /// </summary>
        public Int64 StaticVer { get; set; }

        /// <summary>
        /// 动态资料版本，格式为：YYYYMMDDhhmmss，即：年月日时分秒
        /// </summary>
        public Int64 DynamicVer { get; set; }


    }

}
